<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展运算符[...] </title>
</head>

<body>
    <script>
        // [...] 扩展运算符能将 [数组] 转换为逗号分隔的 [参数序列]
        //声明数组
        const tfboys = ['A', 'B', 'C'];

        // 声明一个函数
        function chunwan() {
            console.log(arguments);
        }

        chunwan(tfboys);
        chunwan(...tfboys); // chunwan('A', 'B', 'C');

    </script>
</body>

</html>